﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ADIGRE.Domain.RoutineTable;
using System.ComponentModel.DataAnnotations;

namespace ADIGRE.Domain.View
{
    public class vwBalancoMensal
    {
        List<BalancoMensal> BalancoMensal { get; set; }
        [Display(Name = "Realizar fechamento até"), DisplayFormat(DataFormatString = "{0:MM/yyyy}")]
        public virtual DateTime? DtReferencia
        {
            get
            {
                if (NuMes <= 0 && NuAno <= 0)
                    return Convert.ToDateTime(string.Format("01/{0}/{1}", NuMes, NuAno));
                return null;
            }
        }
        public virtual int NuMes { get; set; }
        public virtual int NuAno { get; set; }
    }
}
